package cn.woniu.ecommerceplatform.controller;

import cn.woniu.ecommerceplatform.service.HomePageService;
import cn.woniu.ecommerceplatform.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/homePage")
public class HomePageController {

    @Autowired
    private HomePageService homePageService;

    @RequestMapping("/queryGood")
    public ResponseResult queryGoodList(){
        return homePageService.queryGoodList();
    }

    @RequestMapping("/queryType")
    public ResponseResult queryTypeList(){
        return homePageService.queryTypeList();
    }

    @RequestMapping("/queryMoney")
    public ResponseResult queryMoney(){
        return homePageService.queryMoneyList();
    }

}
